﻿using System;
using System.Collections.Generic;

namespace LibraryManagementSystem.Models;

/// <summary>
/// 借阅记录表
/// </summary>
public partial class Borrowrecord
{
    /// <summary>
    /// 借阅记录ID，主键，自增
    /// </summary>
    public int Id { get; set; }

    /// <summary>
    /// 会员ID，外键
    /// </summary>
    public int MemberId { get; set; }

    /// <summary>
    /// 文献ID，外键
    /// </summary>
    public int LibraryItemId { get; set; }

    /// <summary>
    /// 借阅日期
    /// </summary>
    public DateTime BorrowDate { get; set; }

    /// <summary>
    /// 应还日期
    /// </summary>
    public DateTime DueDate { get; set; }

    /// <summary>
    /// 归还日期
    /// </summary>
    public DateTime? ReturnDate { get; set; }

    /// <summary>
    /// 罚款金额
    /// </summary>
    public decimal Fine { get; set; }

    /// <summary>
    /// 借阅状态
    /// </summary>
    public string Status { get; set; } = null!;

    public virtual Libraryitem LibraryItem { get; set; } = null!;

    public virtual Member Member { get; set; } = null!;
}
